package cn.jetpiece.cloud.common.app.modular.message.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户通告阅读标记表
 *
 * @author jetpiece
 * @since 2022-11-16
 */
@Data
@TableName("common_announcement_send")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class AnnouncementSend implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
	@TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 通告ID
     */
    @TableField(value = "announcement_id")
    private Long announcementId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 阅读状态（0未读，1已读）
     */
    @TableField(value = "read_flag")
    private String readFlag;

    /**
     * 阅读时间
     */
    @TableField(value = "read_time")
    private Date readTime;

    /**
     * 创建人
     */
    @TableField(value = "create_by", fill= FieldFill.INSERT)
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill= FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by", fill= FieldFill.UPDATE)
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill= FieldFill.UPDATE)
    private Date updateTime;
}
